#import "BraveVortexCell.h"


@implementation BraveVortexCell

- (instancetype)initWithFrame:(CGRect)frame {
	self = [super initWithFrame:frame];
	if (self) {
		//self.contentView.backgroundColor = UIColor.whiteColor;
	}
	return self;
}

- (void)setThriveKingdom:(BraveVortexModel *)thriveKingdom {
	_thriveKingdom = thriveKingdom;

	//: 配置cell的UI

	self.melodicVoyageKeenLabel.text = [thriveKingdom.mergeZest stringValue];

}
//: self.mergeGrinButton 的点击事件
- (void)action_1 {}

//: _intrepidGlowAmberButton 的点击事件
- (void)action_2 {}

- (UIButton *)intrepidGlowAmberButton {
	if (!_intrepidGlowAmberButton) {
	
        _intrepidGlowAmberButton = [[UIButton alloc] init];
        UIImage *perceptiveHover = [UIImage imageNamed:@"images/icon_2.png"];
        if (perceptiveHover) {
	        [_intrepidGlowAmberButton setImage:perceptiveHover forState:UIControlStateNormal];
        }
        [_intrepidGlowAmberButton setTitle:@"button_2" forState:UIControlStateNormal];
        [_intrepidGlowAmberButton setTitle:@"button_selected_2" forState:UIControlStateSelected];
        [_intrepidGlowAmberButton setTitleColor:[UIColor colorWithRed:209/255.0 green:48/255.0 blue:204/255.0 alpha:0.6] forState:UIControlStateNormal];
        [_intrepidGlowAmberButton setTitleColor:[UIColor colorWithRed:127/255.0 green:252/255.0 blue:81/255.0 alpha:0.7] forState:UIControlStateSelected];
        [_intrepidGlowAmberButton addTarget:self action:@selector(action_2) forControlEvents:UIControlEventTouchUpInside];
	}
	return _intrepidGlowAmberButton;
}

- (UIView *)imaginationView {
	if (!_imaginationView) {
	
        _imaginationView = [[UIView alloc] initWithFrame:CGRectZero];
        _imaginationView.frame = CGRectMake(41, 45, 116, 172);
	}
	return _imaginationView;
}

- (UILabel *)melodicVoyageKeenLabel {
	if (!_melodicVoyageKeenLabel) {
	
        _melodicVoyageKeenLabel = [UILabel new];
        _melodicVoyageKeenLabel.text = @"label_4";
        _melodicVoyageKeenLabel.font = [UIFont systemFontOfSize:18 weight:UIFontWeightMedium];
        _melodicVoyageKeenLabel.textColor = [UIColor colorWithRed:40/255.0 green:90/255.0 blue:141/255.0 alpha:0.9];
        _melodicVoyageKeenLabel.textAlignment = NSTextAlignmentCenter;
        _melodicVoyageKeenLabel.numberOfLines = 3;
	}
	return _melodicVoyageKeenLabel;
}

- (void)flourishElevateCactusInitUIKitView {

    //: 描述_0
    UIView *flourishUndertowJourney = [UIView new];
    flourishUndertowJourney.frame = CGRectMake(41, 0, 180, 98);
    self.voyageView = flourishUndertowJourney;
    [self.contentView addSubview:flourishUndertowJourney];


    //: 描述_1
    self.mergeGrinButton = [UIButton new];
    UIImage *grit = [UIImage imageNamed:@"images/icon_1.png"];
    if (grit) {
	    [self.mergeGrinButton setImage:grit forState:UIControlStateNormal];
    }
    [self.mergeGrinButton setTitle:@"button_1" forState:UIControlStateNormal];
    [self.mergeGrinButton setTitle:@"button_selected_1" forState:UIControlStateSelected];
    [self.mergeGrinButton setTitleColor:[UIColor colorWithRed:180/255.0 green:86/255.0 blue:200/255.0 alpha:0.8] forState:UIControlStateNormal];
    [self.mergeGrinButton setTitleColor:[UIColor colorWithRed:177/255.0 green:10/255.0 blue:68/255.0 alpha:0.6] forState:UIControlStateSelected];
    [self.mergeGrinButton addTarget:self action:@selector(action_1) forControlEvents:UIControlEventTouchUpInside];
    [self.contentView addSubview:self.mergeGrinButton];
	[self.mergeGrinButton mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(104);
		make.height.mas_equalTo(122);
	}];

	//: 描述_2
	[self.contentView addSubview:self.intrepidGlowAmberButton];
	[self.intrepidGlowAmberButton mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(189);
		make.height.mas_equalTo(133);
		make.top.equalTo(@(23));
		make.bottom.equalTo(@(27));
	}];

	//: 描述_3
	[self.contentView addSubview:self.imaginationView];

	//: 描述_4
	[self.contentView addSubview:self.melodicVoyageKeenLabel];
	[self.melodicVoyageKeenLabel mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(186);
		make.height.mas_equalTo(94);
		make.bottom.equalTo(@(20));
	}];


    //: 描述_5
    UITextView *pulseBlaze = [[UITextView alloc] init];
    pulseBlaze.frame = CGRectMake(46, 40, 163, 81);
    self.tranquilTextView = pulseBlaze;
    [self.contentView addSubview:pulseBlaze];
}


@end